Added date validation to form data.