Added a unicity constraint for group memberships