fixing flash message on login