add validation for dates and lists