fix getting userinfo from cookie