Redirect URI/Login Authentication

Naturally, the example is a quick and dirty example, and is not even the code I actually use on production.

Further more in Production, server notices should not be shown.