makes the login and logout flashes function properly. Finally makes the app say goodbye to the user upon logging out.