add check function for BIP39

fixes #393