Corrections on jQuery.fn.validate('valid') method