Fixing the WTForms  error message for invalid dates