added helper method to check if a value is a ValidationError
struct validator initial support for nested field testing