Actually add a date validation function