let input = document.querySelector('.inp');
warn = document.querySelector('.alert-warning');
form.onsubmit = (e) => {
if(input.value.length < 3) {
e.preventDefault()
warn.classList.add("warn");
return false;
}}