Adding chapter 5

Added chapter 5 to the `master` branch.
This chapter covers the use of the login system alongwith some bits of the database.