fixed validation bug preventing cohort from saving to database