A 5g is fine for now, sure. I'd suggest upgrading at some point, but as long as he can get out of the water at least half the time without having to just perch on a tiny bit of land, he'll be OK. Larger tank is to give him a bit of room in case he's a larger species, and increased water volume will help you keep his tank nice and clean.
Is he eating? If so, he might take pellets. If not, try frozen food.