Make validation work

Add type for validation that works with scalaz7 and scala 2.10.
Fixes #39.
Merge pull request #65 from ovstetun/fix_validation_2.10

Fix validation 2.10