//same code exist in UserNameSignUpView & ChangeUserPasswordView public bool IsNewPasswordValid() { return(NewPassword != null && NewPassword.Length > 0 && SecureStringHelper.SecureStringEqual(this.NewPassword, this.ConfirmPassword)); }