added dialog to ask for password