Added some console.log for debugging cookie issue