added error checking for youtube urls