log in and out mechanism in place - with cached html