Adding docs for stateless openid mode and fixing logic