added date validator