login: fix problem when cookie is removed