login/ logout added, bug fixes