adding and generating random cohorts / flask.ext.login flag