Changed html to use form tag, which conveniently allows enter button to submit the form