Chapter 5: Adding validations