title: Incorrect Error Message for Compare Attribute in MVC model class (for jquery unobtrusive)
body: <p>Friends, </p>
  
  <p>This problem is really annoying me from last 2 days. I've finally decided to put it on SO.</p>
  
  <p>I have following property in my Model</p>
  
  <pre><code>[Required]
  [StringLength(20, MinimumLength = 4, ErrorMessage = "Length of this field should be between 3 and 20.")]
  public string Password { get; set; }
  
  [Required]
  [StringLength(20, MinimumLength = 4, ErrorMessage = "Password Lenght should be between 4 and 20.")]
  [Compare("Password", ErrorMessage = "Password did not match")]
  [Display(Name = "Retype Password")]
  public string RePassword { get; set; }
  </code></pre>
  
  <p>And Following HTML in razor to create input fields for the same.</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      @Html.LabelFor(m =&gt; m.Password, new { @class = "control-label col-md-4" })
                  &lt;div class="col-md-4"&gt;
                      @Html.PasswordFor(m =&gt; m.Password, new { @class = "form-control", placeholder = "Password" })
                  &lt;/div&gt;
      &lt;div class="col-md-4"&gt;
          @Html.ValidationMessageFor(m =&gt; m.Password)
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="form-group"&gt;
      @Html.LabelFor(m =&gt; m.RePassword, new { @class = "control-label col-md-4" })
                  &lt;div class="col-md-4"&gt;
                      @Html.PasswordFor(m =&gt; m.RePassword, new { @class = "form-control", placeholder = "Retype Password" })
                  &lt;/div&gt;
      &lt;div class="col-md-4"&gt;
          @Html.ValidationMessageFor(m =&gt; m.RePassword)
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It always render following HTML</p>
  
  <pre><code>&lt;div class="form-group"&gt;
      &lt;label class="control-label col-md-4" for="Password"&gt;
          Password
      &lt;/label&gt;
      &lt;div class="col-md-4"&gt;
          &lt;input id="Password" class="form-control" type="password" placeholder="Password" name="Password" data-val-required="The Password field is required." data-val-length-min="4" data-val-length-max="20" data-val-length="Length of this field should be between 3 and 20." data-val="true"&gt;&lt;/input&gt;
      &lt;/div&gt;
      &lt;div class="col-md-4"&gt;
          &lt;span class="field-validation-valid help-block" data-valmsg-replace="true" data-valmsg-for="Password"&gt;&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      &lt;label class="control-label col-md-4" for="RePassword"&gt;
          Retype Password
      &lt;/label&gt;
      &lt;div class="col-md-4"&gt;
          &lt;input id="RePassword" class="form-control" type="password" placeholder="Retype Password" name="RePassword" data-val-required="The Retype Password field is required." data-val-length-min="4" data-val-length-max="20" data-val-length="Password Lenght should be between 4 and 20." data-val-equalto-other="*.Password" data-val-equalto="'Retype Password' and 'Password' do not match." data-val="true"&gt;&lt;/input&gt;
      &lt;/div&gt;
      &lt;div class="col-md-4"&gt;
          &lt;span class="field-validation-valid help-block" data-valmsg-replace="true" data-valmsg-for="RePassword"&gt;&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Its No matter what I write in <code>ErrorMessage</code> in <code>Compare</code> attribute, It always has same value for <code>data-val-equalto</code> attribute that is <code>'Retype Password' and 'Password' do not match.</code> for <code>RePassword</code> filed</p>