Add support for validating responses

Fixes #25