We already have validations when the type is "consumer" or "producer". We should probably add a similar validation when the type is "flex'. See quintel/etsource#2645