set session storage logic to attempt_login and logout action