add validation for service_ensure parameter