Protecting Pages in Next.js Apps with Middleware