Change default message for pattern mismatch errors.
Add unit tests for registering custom validation functions.
Document the ability to register validation functions for rule types.