adjustment to the date validation