I would replace that latch with one where you can't lock yourself in. I use one that accepts a carabiner.
You will probably need to attach a tarp or some vinyl to the sides whenever you get significant rainfall. Wind will carry the rain inside despite the roof overhang.