added deleteCookie method (logout)