prevent duplicates in auto-complete and select