Fixed form submit event handling (welcome to web development)