Basic field-level validation and error storage

And fix invoke test command
Small validation refactor