Refactor date validation to be more readable