Defining validations on the bean