Introduced check for host url. Fixed possible user error.