refactored dynamic registration endpoint's checks for client consistency
cleanup, error wrappers on protected resource registration
extracted validation exception, refactored protected resource registration endpoint to use this format