Returns:
Validates the specified value.
Validates the specified value. Returns an error message if the validation failed. Otherwise, an empty optional is returned.
Validation error message