Building jQuery Validate rule.