Contact Form on Popup reopening popup on submission

I have a contact form on the popup that shows up as soon as a user visits a certain URL. I want the popup to close once the user submits the form. Right now when I submit the form the popup closes and then reopens.

I'm using contact form 7 for the form. Also none of the validation (required fields) are working, I am able to submit the form blank.

Also I already have the "always close after form submit" option selected.