New method added. Method checks for username, password and returns openid.