add: functionality for login and logout
removed: unused stuff