small code example is the user login / logout