Added date validation