title: ModelState.IsValid = False
body: <p><code>ModelState</code> is throwing an error that one of the parameters <code>[UserId]</code> is <code>null</code>. That field isn't being set on my form. It's being set in the controller.</p>
  <p>How do I remove it from the ModelState.IsValid test?</p>
  <pre><code>    [HttpPost]
      [ValidateAntiForgeryToken]
      public async Task&lt;IActionResult&gt; Create([Bind(&quot;Id,UserId,Created,TimeStamp,Name,Role,Description,Partner,PartnerAmount,Competitor,IsDeleted&quot;)] Relationship relationship)
      {
          relationship.UserId = User.Identity.Name.Replace(@&quot;XXXXX\&quot;,&quot;&quot;);
          relationship.Created = DateTime.Now;
          relationship.TimeStamp = DateTime.Now;
          relationship.IsDeleted = false;
          if (ModelState.IsValid)
          {
              _context.Add(relationship);
              await _context.SaveChangesAsync();
              return RedirectToAction(nameof(Index));
          }
          return View(relationship);
      }
  </code></pre>
  <p>It won't pass ModelState.IsValid b/c of UserId.  But, it doesn't check Created,  Timestamp or IsDeleted.  Why doesn't it check those, but it does check UserId?  All of these fields are required in my Model.</p>