Made it so that if you try to go to /index while already logged in, it
redirects to /app