Add validate for end date