Added possibility to logout the session