add validation to wallet secret

Fixes #172