add form data on submit event