added js-validation