Change the duplicate name validation methods.