redirect user to the login page when logging out
simplify display of flash messages