add form_logic