Hooking up the onsubmit listener to text input field.