Redirect a logged-in user to URL.

This just makes it nicer so logged-in users don't see the login or register pages.
But it's just for those two views. The functions to change the password and so on are still working.