On a Delta flight from Minnesota to Las Vegas, our pilot needed to use the toilet and upon return the door jammed to the cockpit. The co-pilot had never landed the plane alone and the pilot did a great job of keeping everyone calm. Las Vegas prepared for an emergency landing but the landing was fine and wveryone was excited when we landed.