title: MVC Razor Validation Errors showing on page load when no data has been posted
body: <p>I'm messing around with data annotations. When I click on a link to go to a page, the validation messages are being displayed, but I would like to have the validation messages not show unless data has been posted.</p>
  
  <p>View:</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.EmailAddress, new { @placeholder = "Enter Email", @class = "form-control" })
  @Html.ValidationSummary(true, "Registration Failed. Check your credentials")
  @Html.ValidationMessageFor(m =&gt; m.EmailAddress, "You must enter a valid Email Address.")
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>[Required(ErrorMessage = "Email is required")]
  [DataType(DataType.EmailAddress)]
  [EmailAddress]
  [Display(Name = "Email Address: ")]
  public string EmailAddress { get; set; }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>[HttpGet]
          public ActionResult AddUser()
          {
              return View();
          }
  
          [HttpPost]
          public ActionResult AddUser(UserCreateViewModel user)
          {
              if (ModelState.IsValid)
              {
                  var success = UserRepository.AddUser(user);
  
                  if (success)
                  {
                      return View("Success");
                  }
              }
  
              return View("AddUser");
          }
  </code></pre>
  
  <p>Like I said, my problem occurs on page load of the AddUser view. When I click on the link to view the AddUser page, validation messages are showing after it loads, yet at this point no data has been posted and the model is empty.</p>