flow control for home page depending on session status