adding better validation error
Merge pull request #2 from grimborg/master

adding better validation error