title: Remote validation rule for JQuery validation fails (using MVC 2)
body: <p>I have a field in my markup that I want to validate towards the server. My form currently looks like this:</p>
  
  <pre><code>&lt;% using (Html.BeginForm()){ %&gt;
    &lt;%: Html.Serialize("regData", Model)%&gt;
    &lt;div class="RegistrationGroup"&gt;
      &lt;p&gt;&lt;label for="Account_Email"&gt;e-mail&lt;/label&gt; &lt;%: Html.EditorFor(x =&gt; x.Account.Email) %&gt;&lt;span class="ErrorMessage"&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;/div&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>Then in my jQuery script I have the following code:</p>
  
  <pre><code>$("form").validate({
    rules: {
      "Account.Email": {
        required: true,
        email: true
        remote: "Registration/ValidateEmail"
      }
    }
  });
  </code></pre>
  
  <p>In my RegistrationController class, I have the following method:</p>
  
  <pre><code>public string ValidateEmail(string email)
  {
    if (email.Contains("oek"))
      return "false";
    return "true";
  }
  </code></pre>
  
  <p>So for testing, this should return false, and fail the validation if the e-mail address have <code>"oek"</code> somewhere inside it.</p>
  
  <p>However, this does not work.</p>
  
  <p>Without the remote part, the required and email rules work as they should, so I know that they are working.</p>
  
  <p>When I add the remote rule, the following steps happen:</p>
  
  <ul>
  <li>The method on the controller gets called as planned, with the e-mail address as it's parameter.</li>
  <li>The return value from the method it intercepted inside the browser as true or false respectively ( I used Chrome's developers tools to control this).</li>
  </ul>
  
  <p>But the validation does not work as planned at this point, and after the remote call is done, the required and email rules stop working as well. (it does not try to enforce the remote rule until the other rules have passed the validation, which is a good thing of course).</p>
  
  <p>I have also tried to return a <em>JsonResult</em> with <em>true</em> or <em>false</em>, but to no avail.</p>
  
  <p>What am I doing wrong here?</p>