Logout operation working