Simple validation form with javaScript - DOM