add date validator to the repo of functions