Added cohort checking functions and tests needs.
Still need to link the functions from the correct login states