Re-enabled the logout function