Limit search phrase length to prevent possible DoS (fixes #335).
Report search form errors to user