5. Qd2 seems like a mistake to me. What's the point? Before Qd2, O-O would remove the pin. After Qd2, O-O still leaves the knight pinned (now just to the queen).
If you want to move the queen, 5. Qc2 seems more reasonable to me. And after 5. Qc2, black can't play 5... Ne4 because the queen will hang.
I've been having a lot of trouble with this! How does white play on from here? Or was there a mistake earlier?