Fix validation 2.10

Added type for Validation as an Either-implementation.
Thanks to @xuwei-k for pointing me in the right direction!