Throw error on invalid url

Task #106