setting validations for handle