added global  to openidlogin method, replaced an old mysql_query. openid login now works.