login, registering and logout implemented