added a simple validity check: at least one item has to be selected in
every listbox. This makes sense because a query would not work if e.g.
no item is selected