validation on a has_many relationship