First hand is fine, second hand you didn't raise enough preflop or on the flop.

The nuts after the flop is actually a 2,3 but you are unlikely to see anyone coming in on that unless they accidentally hit call. I suspect accidental calls of that kind may be more common than most people realise.