Sign in with cookie half way, unable to set cookie and use cookie right away.