User should be able to navigate from one page to another once he/she has logged in.
Any user who has not logged in, should not be able to access those pages which can be accessed only after login.
On clicking
logout
button user must not be logged in again, if he/she clicks on the back button.