update the duplicate validation that throws exception