Fix error reporting
Make OpenID endpoint configurable