fixed Authentication error when using multiple pages