add validation for calendar