Added a click event to the button submit

The name and message is now submitted on click.