added end date validator