Anton, just to clarify. You created a custom page. You visited this page as a loged in user. Then you log out from this users account. Everything is ok. Then you visit the same page as a guest user and what happens at this stage? Can you give screen shots?