New create_inputs and do_form functions