added validation error functionality
Merge pull request #25 from adaptlearning/issue/#22

added validation error functionality