Logout functionality is working now.