Implement validate command

I would check against the full error message here. This makes it easier to see how it looks like. I would also use this as the primary place to check the error messages as the integration tests are more expensive to run.