chapter 14 user login and logout