update validation js