added proper flash messages for login/out.