protected function _validateGroup($permissionsValues, $groupname, &$permissions)
    {
        $errors = array();
        // validate permissions
        if(!empty($permissionsValues)) {
            foreach($permissionsValues as $key => $permission) {
               $permissions[$key] = 1;
            }
        }
        // validate group name
        $validator = new GroupValidator(Input::all());

        $gnErrors = array();
        if(!$validator->passes()) {
            $gnErrors = $validator->getErrors();
        }

        return $gnErrors;
    }