Work with PasswordDialog