Login/logout functionality added