confirm domain name parameter has value before passing off to handleSearch