frontend validation working for dropdowns