title: Validation not working using @Html.HiddenFor
body: <p>I have the following code:</p>
  
  <pre><code>@Html.HiddenFor(model =&gt; model.Posted, Model.Posted = DateTime.Now)
  </code></pre>
  
  <p>But the validation does not work It crashes when I run my application and try to edit or create an item.</p>
  
  <pre><code>public ActionResult Create()
  {
      return View(new NewsItem());
  }
  </code></pre>
  
  <p>I also have the following code above in my controller and the application it all works to what I want it do for example it inputs the current date and saves it but if I leave one editor box blank or a all the editor box's blank the application crashes and gives the following error:</p>
  
  <blockquote>
    <p>Object reference not set to an instance of an object.</p>
  </blockquote>
  
  <p>I do not know what this means? I thought the default validation provided by MVC3 C# should work? So what is wrong? Can anyone help?</p>
  
  <pre><code>/* This line of code is what is provided for validation it is pretty much 
     similar on all the edit, delete and create views. */
  @Html.ValidationMessageFor(model =&gt; model.Posted)   
  </code></pre>