Fix for unique users

Fix to prevent the same user to be invited to the same group twice.