adding cohort validation functions - 90% complete