title: 2 validation groups
body: <p>I have 2 validation forms on page. </p>
  
  <pre><code>&lt;div id='LogOn' style="background-color: White;"&gt;
      @using (Ajax.BeginForm("LogOnAjax", "Home", new AjaxOptions { UpdateTargetId = "LogOn", OnSuccess = "logInComplete" }))
      { 
          //ITW2012Mobile.ViewModels.LogOnModel m = Model;
          @Html.HiddenFor(model =&gt; model.IsLoggedIn)
          @Html.HiddenFor(model =&gt; model.ReturnUrl)
          &lt;div&gt;
              @Html.ValidationSummary()
          &lt;/div&gt;
          &lt;div&gt;
              @Html.LabelFor(model =&gt; model.UserName)
              @Html.EditorFor(model =&gt; model.UserName)
          &lt;/div&gt;
          &lt;div&gt;
              @Html.LabelFor(model =&gt; model.Password)
              @Html.EditorFor(model =&gt; model.Password)
          &lt;/div&gt;
          &lt;div&gt;
              &lt;input type="submit" value="Login" /&gt;
          &lt;/div&gt;
      }
  &lt;/div&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;fieldset&gt;
      @using (Html.BeginForm(Model.ActionMethod, Model.Controller))
      {
          @Html.ValidationSummary()
  .....
              &lt;div class="display-label"&gt; E-mail Address * &lt;/div&gt;
              &lt;div class="display-field"&gt;
              @Html.EditorFor(model =&gt; model.Username)
              @Html.ValidationMessageFor(model =&gt; model.Username)
              &lt;/div&gt;
              &lt;div class="display-label"&gt; Create Password * &lt;/div&gt;
              &lt;div class="display-field"&gt;
              @Html.PasswordFor(model =&gt; model.Password)
              @Html.ValidationMessageFor(model =&gt; model.Password)
              &lt;/div&gt;
  
          &lt;p&gt;
              &lt;input type="submit" value="Create" /&gt;
          &lt;/p&gt;
      }
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>How can I mark that <code>ModelState.AddModelError</code> is for first of form, because I see the same error in the both places of <code>validation summary</code>?</p>