adding cohort validation functions - 96% complete