update build and exporting struct validator
fixed field validator field detection
moved error file
extracted error classes out of the validator files