validation in context or dialogs