checks if user group record already exists & prevents duplicate