Added "error handling".
Fixed crash in db.
Fixed invalid_request thrown by OpenID providers.
Added defaultValue to user type.
Moved OpenID attribute in model.