form submit now respects the fields datatype