show message for duplicate name error