Logout control fixed