Let's say we have a date picker compoent which display start date and end date. We want to make sure that start date is no later than end date, if it was, display an error message.
Validators:
Return null means form is valid. Return object means form has error.
Usage: