updated date validation