Fix sign-in bug