title: display incorrect password message
body: <p>I have below form written in mvc3 razor. I want to display a message when user has entered incorrect password. I have placed a label to display message but dont know how to accomplish show/hide in mvc. Please help.</p>
  
  <pre><code>@using (Html.BeginForm("Authenticate", "Authorization", FormMethod.Post, new { autocomplete = "off" }))
  {
      &lt; div&gt;
      &lt; fieldset&gt;
          &lt;legend &gt; User Information &lt;/legend&gt;
  
          &lt;div class="editor-label"&gt;
              @Html.Label("Password")
  
              @Html.TextBox("password")
              @Html.ValidationMessageFor(m =&gt; m.password)
              @Html.Label("Incorrect Password")
          &lt;/div&gt;
          &lt;p&gt;
              @Html.Hidden("tab", ViewData["tab"])
              &lt;input type="submit" value="Submit" /&gt;
          &lt;/p&gt;
  
      &lt;/fieldset&gt;
  &lt;/div&gt;
  }
  </code></pre>