date validation typo bug