Session handling, login and logout implemented