add validation to wallet secret
Merge pull request #370 from yemel/fix/bad-secret-handling

add validation to wallet secret