define check_password for imported wallets