Added HEX field validation to the form.