My form cannot be submitted due to an error in the date picker field