as the case may be, a valid contract or agreement with a sugar factory or sugar refinery for refining of such raw sugar and shall furnish a bond to the effect that the said raw sugar shall be used for the said purpose;