added logout button and started cookie mgmt stuff