Solved! Go to Solution.
$('body').on('show','#dijit_Dialog_0',loadUsername);
IdentityManager.on('dialog-create', testFunction);
function testFunction(){ IdentityManager.dialog.txtUser_.set("value", "jon"); //dijit.byId("dijit_form_ValidationTextBox_0").set("value", "jon"); }