added extra check for groups
added extra check for groups

CMPUT404Team/CMPUT404-project-socialdistribution,CMPUT404Team/CMPUT404-project-socialdistribution,CMPUT404Team/CMPUT404-project-socialdistribution