Fixed user Logout method