title: Compare field not showing error message
body: <p>I have got a model as below - </p>
  
  <pre><code>public string Password { get; set; }
  [Compare("Password", ErrorMessage = "Password and Confirm Password have to be the same")]
  public string ConfirmPassword { get; set; }
  </code></pre>
  
  <p>In my HTML, I am adding the code as</p>
  
  <pre><code>&lt;label&gt;Password&lt;/label&gt;
  &lt;span class="req"&gt;*&lt;/span&gt;                                  
  @Html.PasswordFor(x =&gt; x.Password, new { @class = "form-control form-control2", @required = "required" })
  &lt;p class="signuppace"&gt;&lt;/p&gt;
  
  &lt;label&gt;Confirm Password&lt;/label&gt;
  &lt;span class="req"&gt;*&lt;/span&gt;
  @Html.PasswordFor(x =&gt; x.ConfirmPassword, new { @class = "form-control form-control2", @required = "required" })
  </code></pre>
  
  <p>The message for the required field gets displayed but here the ErrorMessage "Password and Confirm Password have to be the same" doesn't get displayed. I have already referred this <a href="https://stackoverflow.com/questions/6818516/compare-password-attribute">1</a>,<a href="https://stackoverflow.com/questions/20002074/mvc-compare-not-working">2</a> SO links.  What am I doing wrong? Any help would be appreciated.</p>