Added type attribute to buttons in HTML.