change in javascript validation