validate js fixed problem