enabled login and logout functionality