Created method to validate dropdown/combobox selections.