add flash notices for login/logout