title: Nopcommerce Override RegisterValidator
body: <p>I want to add another <code>RuleFor</code> for <code>Phone</code> Field in <code>RegisterModel</code> in my plugin.</p>
  
  <p>So, I create a plugin and extend <code>RegisterValidator</code> The following form:</p>
  
  
  
  <pre><code>public partial class RegisterValidator : AbstractValidator&lt;RegisterModel&gt;
  {
     public RegisterValidator(ILocalizationService localizationService)
     {
        RuleFor(x =&gt; x.Phone)
        .Matches(@"^(0|\+98)?([ ]|,|-|[()]){0,2}9[1|2|3|4]([ ]|,|-|[()]){0,2}(?:[0-9]([ ]|,|-|[()]){0,2}){8}$")
        .WithMessage(localizationService.GetResource("Account.Fields.Phone.InvalidMobileNumber"));
     }
  }
  </code></pre>
  
  <p>But this not work.</p>
  
  <p>Generally, how can exchange <code>RegisterValidator</code> in my plugin?!</p>
  
  <p>Please advice me,if possible.</p>