End of chapter 5 - not all is well, as a user is authenticated but cannot log in :(