Fix user logout.