If the code goes through the if block, then we need to update the passwd var with the password we get from the KPasswordDialog.