Form validation on pure JS