Fixes flaw in JS, custom dropdowns now focus when invalid