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