The problem is that the submit event is not fired if there are html5 validation errors. They will show up but i won't be able to switch the tab.