adds login/logout, layout changes, and refactors sessionhelper