jQuery validator additional method not working as expected
<p>I am using this jQuery validation plugin, <a href="http://jqueryvalidation.org/" rel="nofollow">http://jqueryvalidation.org/</a>  And I am creating an addition method, as shown here.</p>

<pre><code>jQuery.validator.addMethod('exists', function(value, element) {
    $.ajax({
        data: {username: value},
        type: 'POST',
        url: 'action/check/',
        dataType: 'json',
        success: function(data) {
            if (data==true) {
                console.log(data);
                return true;
            }
            if (data==false) {
                console.log(data);
                return false;
            }
        }
    })
}, 'This username is already in use');
</code></pre>

<p>My console is getting the proper data back from the check script and in my console I can see true and false etc.  But what I do not understand is the validation flag seems to flag the input regardless of what the input is.</p>

<pre><code>rules: {
        password_confirm: {
            equalTo: 'input[name=password]'
        },
        username: {
            exists: true
        }
    }
</code></pre>

<p>I already have username <code>chris</code> in my database, so when I type <code>chris</code> into the username input I should get a flag for being a duplicate user, but regardless of what type I get the validation flag.</p>

<p>What am I missing</p>