added a line to check the uli in the url is the same as the one in the data