Logging out works correctly now