Auto redirect if the user isn't logged in.