make sure the mnemonic is valid when restoring from seed