login and logout functionality added