added function validate_that