Replace "Unauthorized" with redirect to /
Return clientid with registration