add form submit check