I figured it out.
Here is the code if anyone else needs to know:
{
input: ‘#emailVerify’, message: ‘Email and email verification don\’t match!’, action: ‘keyup, focus’, rule: function (input, commit) {
// call commit with false, when you are doing server validation and you want to display a validation error on this field.
if (input.val() === $(‘#email’).val()) {
return true;
}
return false;
}
},