replace file sessions with database. fix bug with handling unauthenticated user on load
change document title when the header title changes