Added features to work with session. Now it is possible to login and logout.