Validation function interface
The type of value being validated
Validates a value
The value to validate
Optional
Optional HTML element for context
True/empty string for success, false/error message for failure
Validation function interface