title: mvc4 url validation
body: <p>I'm writing this question here after trying to find an answer for two days.</p>
  
  <p>basically here's what's going on.</p>
  
  <p>I have a property in the viewmodel as follows</p>
  
  <pre><code>[Required(ErrorMessage = "Required Field")]
  [Url(ErrorMessage="Please enter a valid url")]
  [DisplayName("Website")]
  public string web { get; set; }
  </code></pre>
  
  <p>in the view, I have this</p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.web, new { AutoCompleteType = "Disabled", autocomplete = "off" })
  </code></pre>
  
  <p>now the problem lies in how the input text for this field is validated in the client side. the field must have the protocol prefix at all times, otherwise it becomes invalid.</p>
  
  <p>what is the best way I can fix this issue?</p>
  
  <p>Many Thanks</p>