add input verification for public key import