Allow date formats to be customized.
Stop form submission when built-in validation fails.