Logout functionality repaired