add todo: add form error handler in search form.