add validations to extension