add sessions, login and logout