trying to add login and logout functionality