add the validate js