Added form input field validation.