It seems that the baby has developed an infection and may need an anitbiotic. It is necessary to carry out some investigations such as bloods also. Repeated loose motions in children may predispose them to dehydration
. You should ensure that you replace enough fluids which electral. It is important that you see a doctor and start treatment immediately.