moved is_group_match() to class CAT_Users and some fixes