Connect-flash is not working

The flash message is not working . It is also getting into catch block but unable to display error.

Code:- https://github.com/RajeshM17/twitter-clone/tree/authentication