title: ASP.NET MVC - Validation messages not appearing
body: <p>All of these fields are given the required property in the model. But when left blank and the submit button is pressed, there is no validation message appearing.</p>
  
  <pre><code>@using (Html.BeginForm("Login", "Account", null, FormMethod.Post))
  {
      @Html.ValidationSummary(true, "", new { @class = "text-danger" })
      @Html.AntiForgeryToken()
      &lt;br /&gt;
  
      &lt;div class="container"&gt;
          &lt;div class="row"&gt;
  
              &lt;h2 style="text-align: center;"&gt;@ViewBag.Title&lt;/h2&gt;
              &lt;div class="col-sm-6 col-md-4 col-md-offset-4"&gt;
                  &lt;div class="account-wall"&gt;
                      &lt;h3 style="text-align: center; color: #b3b3b3;"&gt;Login to your account&lt;/h3&gt;
  
  
                      &lt;div class="form-signin"&gt;
  
                          @*Email*@
                          @Html.TextBoxFor(m =&gt; m.Email, new { @class = "form-control", placeholder = @Html.DisplayNameFor(m =&gt; m.Email) })
                          @Html.ValidationMessageFor(m =&gt; m.Email, "", new { @class = "text-danger" })
  
                          @*Password*@
                          @Html.PasswordFor(m =&gt; m.Password, new { @class = "form-control", placeholder = @Html.DisplayNameFor(m =&gt; m.Password) })
                          @Html.ValidationMessageFor(m =&gt; m.Password, "", new { @class = "text-danger" })
  
                          @*Submit*@
                          &lt;div class="centered"&gt;
                              &lt;button type="button" class="btn btn-success " typeof="submit"&gt;
                                  Login
                              &lt;/button&gt;
                          &lt;/div&gt;
  
                          &lt;a href="@Url.Action("Register", "Account")"&gt;&lt;span&gt;Register&lt;/span&gt;&lt;/a&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  }
  </code></pre>