If there are no issue with the plugin or js conflict then in no case the forms gets submitted when there is validation error. So i actually don’t find any reason to hide the button.
However, with some few css you can hide the btn if the form is hidden. But this might not work 100%. If you still want to use it, please do send the the url where you have kept the contact form. I let you know the css you need to use.