migrating from keys to accounts
check for duplicate private key and throw error