Fix the login issue caused by the user object