Add check for valid keys in 'importprivkey'