Hide modal after form submission.