Result type for the useValidation hook.
Clear the error state
Current error message, or null if valid
Whether the value is currently valid (no error)
Set a custom error message
Validate the current value and update error state
Result type for the useValidation hook.