Added a redirect to home if arriving at the registration page when already logged in.