Let validation work for select elements

Select elements previously did not get validated even if a non-empty
option was selected.