I\'m coming into the middle of this project so I\'m having to do a bit of re-writing because of sloppy code. I am using jQuery 1.6.1 and Validate 1.8.1.
First, here\
I faced the same problem, But I find the easiest solution just return true or false after encoding into json through php.
if ($users->username_exists()) { echo json_encode(FALSE); }else{ echo json_encode(TRUE); }