check for 0 private key at key generation