Remote function for validation
<p>I keep getting an undefined for the val that gets passed and not sure why when there's something being put for the form field.</p>

<pre><code>$('#addNewUserForm input[name="username"]').rules('add', {
    remote: {
        type: 'post',
        url: 'addnewuser/is_username_available',
        data: {
            'username': function() { return $('#username').val(); }
        },
        dataType: 'json'
    }
});
</code></pre>
