Logout fixes.