Added error checking for request search id. So in there is no parameters
then it just returns the id without searching for the data