refactor UI.validate