update the validator es6 module defination