added error result when no url provided or incorrect top level domian. Also changed the logging to correctly trap on failure instead of error so that error messages in log display in red