Fixed Login Logout button

added logout button and added logout method