validate plugin names and check for duplicates