Added authentication

If successfully authenitcated the value authenticated is stored in the
session object. This value is checkted in the templates to show delete links and the New Session link.