add route to handle form input and call match()