Dismiss modal on form submit