Adding validation code generator