testing pages before and after login