"floppy" door latch

Remove the latch assembly from the door. Clean, inspect, and lubricate it. Theres probably a spring that's either broken or stuck, allowing it to flop closed.