basics of validation handling