flesh out authentication chapter with more code examples