document.querySelectorAll(".form-input").forEach(
el => { el.onfocus = function() {
this.nextElementSibling.classList.add("active");
};
el.onblur = function() {
if (this.value != false) {
this.nextElementSibling.classList.add("active");
} else {
this.nextElementSibling.classList.remove("active");
}
}
}
);