We recommend that you book a private room (not a dorm) for both of you.
Hostels have specific policies regarding children and babies. Group bookings do not follow the same rules, generally they are flexible when children are accompanied by an adult. (please read the description of the hostel on our site for more info).