Added validation checks for BIP32 keys