Added a basic form validator.