title: Only show a div if the modelstate has errors
body: <p>I have a div which contains a generic styling and error message if a user enters the wrong username/password combo.</p>
  
  <p>I only want to display this div if the user has entered the wrong information. Is there something on my View I could do, something like:</p>
  
  <pre><code>@if(ModelState.HasErrors)
  {
        &lt;div&gt;This login failed&lt;/div&gt;
  }
  </code></pre>