added callback to create and display generated password.