js changes validate form