modify validate js