`setUpValidation` should be a separate function