Validation
example with repository