Fixed call to logout function not having enough options.