check for duplicates before name entry