date validation for edit challenge