Changing error message for duplicate groups