add restriction to prohibit adding duplicate names (#19)