Update validate js