Fix date validation