Handle 401 for protected pages