when editing unit name - it checks if the new name has not been previously used