now when you type a query a press enter the form is submitted