better validation error handling
Merge pull request #10 from peterbe/better-validation-error-handling

better validation error handling