check sector identifier URI's contents and match against redirect URIs, addresses #504
wrap errors in saving the client in an HTTP 400 (instead of HTTP 500) error