AddDialog: user input validation inside dialog without re-running