added start and end date validation