Fix validsig usage and error messages.

Reported by tphyahoo:

https://github.com/spesmilo/sx/issues/18