private bool HasPassword() { var user = UserManager.FindById(User.Identity.GetUserId()); return user?.PasswordHash != null; }