Date form validation and error message handling.