propagate validation error correctly
Merge pull request #4 from mikkolehtinen/master

propagate validation error correctly