validateOptions in swig.js will validate varControls.