js validation changesg