luci-base: ui.js: allow custom validation in Dropdown and DynamicList