Added basic login and logout functionality