added error checking when user does not have groups