Add set_form_data method