For user login and log out works like a charm