Checks for name duplicates