Sanders could not be on the ballot in Missouri because of the”sore loser” law. I am pretty sure many other states have this law also.
Sanders could run a write-in campaign. It worked for Mur-cow-ski in Alaska.