finished auth demo in chapter 7