Added validation for selection boxes.