Fixed login cookie issue