Added a simple error check in case I forget to fill in the URL.