Putting validations into the models