You check your bags through to Dusseldorf which is where you go through customs, although customs in Europe is seamless. Simply go through the nothing to declare line and you're done. You'll go through immigration in Frankfurt where your passport is stamped and will most likely have to go through security as well.