Validation errors

Closes #134