created flash sessions for login and logout