Added authentication to routing. Added session variable for persistant login logout.