Error check for queries added

-only accepts queries with at least 1 letter
-only "-" and "'" in queries are accepted. all other punctuation are
banned