First draft of login and logout with session.