adding cohort validation functions - 95% complete