refactored code, adding user accounts - signing out