Added checking to see if cookie file exists