jquery validation additional method

jquery validation additional method

hey guys, its been a while!...im trying to using socket in a validation method to check if an email exists with the following code:

  1.  jQuery.validator.addMethod('email_address_exists', function(value, element) {                      
        socket.emit('email_address_exists', value, function (result) {
            if (result === true){
                return false;
            return true;
    }, 'Email address already exists');
the sockets callback returns the correct results, returning true  / false.

but even if the email doesnt exist (false), i'll still get the error message 'Email address already exists'

ive googled like mad and can't get this to work, can anyone help me please?

thank you