fix validation "either A or B"