add trigger for js validation success