fixed a getPage to take in string for cookies, still an error occuring