title: Validation using IClientModelValidator
body: <p>In previous release (RC1) I have used the interface <code>IClientModelValidator</code> to validate/compare the Password and Confirm Password using '<code>ModelClientValidationEqualToRule</code>' class as follows</p>
  
  <pre><code>public IEnumerable&lt;ModelClientValidationRule&gt; GetClientValidationRules(ClientModelValidationContext context)
      {
          String strMsg = AccessLocalization.GetString(_resourceID);
  
          var modelClientValidationEqualToRule = new ModelClientValidationEqualToRule(strMsg, _OtherPropertyName);
  
          yield return modelClientValidationEqualToRule;
      }
  </code></pre>
  
  <p>and in jQuery</p>
  
  <pre><code>  $.validator.addMethod("equalto",
     function (value, element, parameters) {
         return value;
  
     });
  
      $.validator.unobtrusive.adapters.add('equalto', [], function (options) {
  
          options.rules.equalto = {};
          options.messages['equalto'] = options.message;
      });
  </code></pre>
  
  <p>However, now I am using .Net Core 1.0 where this interface is completely changed and it does not have '<code>ModelClientValidationEqualToRule</code>' class available. </p>
  
  <p>After reading the <a href="https://docs.asp.net/en/latest/mvc/models/validation.html#iclientmodelvalidator" rel="nofollow">documentation</a> I came to know the validation will be done with the help of data-attributes. So, far I have achieved that for required field attribute, range field attribute, email address attribute etc.</p>
  
  <p>But, I am not getting clear idea how can I validate Password and Confirm Password ?</p>
  
  <p>Any help on this appreciated !</p>