Validate the text input in the search page
There is currently no validation on the text input in the web ui's search page. We need some to prevent form submission with an invalid hash, which would return a JSON error message with no user-friendly way of solving it.
Migrated from T467 (view on Phabricator)