title: MVC Required Field not Working
body: <p>Title says it all, can anyone spot what I'm doing wrong. I've tried moving around my HTMlValidation Summary and a bunch of other things. I feel like it may have something to with the views I am returning from my Controller Class.</p>
  
  <pre><code>-- Model
   public class Login
  {
      [Required(ErrorMessage = "First Name is required")]
      [Display(Name = "First Namex")]
      public string FirstName { get; set; }
  
      [Required(ErrorMessage = "Password is required")]
      [DataType(DataType.Password)]
      [Display(Name = "Passwordx")]
      public string Password { get; set; }
  }
  
    -- Controller
  [HttpPost]
      public ActionResult Login(string FirstName, string Password)
      {
          if (ModelState.IsValid)
          {
              bool validLogin = new UserBAL().ValidateUser(FirstName, Password);
              {
                  if (validLogin == true)
                  {
                      return RedirectToAction("Index", "Invoice");
                  }
                  else
                  {
                    return RedirectToAction("Index");
                    //  ModelState.AddModelError("", "The user name or password provided is incorrect.");
                  }
              }
          }
          return View();
      }
  
   --View 
  @using (Html.BeginForm("Login", "Home"))  
  { @Html.ValidationSummary(true)
  &lt;div&gt;
      &lt;fieldset&gt;   
          &lt;legend&gt;Login&lt;/legend&gt;       
          &lt;div class ="fields"&gt;              
            @Html.LabelFor(u =&gt; u.FirstName)
            &lt;/div&gt;
            @Html.TextBoxFor(u =&gt; u.FirstName)
            @Html.ValidationMessageFor(u =&gt; u.FirstName)  &lt;br /&gt;       
  
          &lt;div class ="fields"&gt;            
           @Html.LabelFor(u =&gt; u.Password)
          &lt;/div&gt;
           @Html.PasswordFor(u =&gt; u.Password) &lt;br /&gt;                 
          &lt;input type="submit" value="Log In" /&gt;
      &lt;/fieldset&gt;
  &lt;/div&gt;   
  </code></pre>
  
  <p>}</p>
  
  <hr>
  
  <pre><code>[HttpPost]
      public ActionResult Login(EIAS.Models.Login login)
      {
          if (ModelState.IsValid)
          {
              bool validLogin = new UserBAL().ValidateUser(login);
              {
              if (validLogin == true)
                  {
                      return RedirectToAction("Index", "Invoice");
                  }
                  else
                  {
                    return RedirectToAction ("Index");
                    //  ModelState.AddModelError("", "The user name or password provided is incorrect.");
                  }
              }
          }
          return View();
      }  
  </code></pre>