Added some pages and fixed a bug with the session process