Exercise 8: beans validation