Added session control for each page in the controller, added a logout bu...

...tton to better control the routing