Fix the user getting logged out after their first request.