added sessions, login and logout, layout page