fixing js-validation error