fixed a 500 bug with openid login