title: Validate username and password without postback in login form ASP.NET MVC
body: <p>I want to validate the entered username and password entered in the textboxes present in a form without Postback/Refresh. I know I am gonna need Javascript or AJAX for this purpose, but somebody please guide me through this like refer me to any tutorial or please explain me the code here. 
  My present code without this feature looks like this:</p>
  
  <pre><code>@using(Html.BeginForm())
  {
      @Html.AntiForgeryToken()
      @Html.TextBoxFor(u =&gt; u.PPNumber, new { @class = "form-control", type = "number", placeholder = "Enter Number",@min="1" })
      @Html.ValidationMessageFor(u =&gt; u.PPNumber)
      @Html.TextBoxFor(u =&gt; u.Password, new { @class = "form-control", type = "Password", placeholder = "Password" })
      @Html.ValidationMessageFor(u =&gt; u.Password)
      &lt;input type="submit" value="Login" class="btn btn-primary btn-block" /&gt;
  }
  </code></pre>