fixed the cohort permissions and metric validation problems

Change-Id: Ia039f487e71b38a0d153cd0460b669cd5d46ca93