Thanks for the query.
You might be suffering from a condition called as intertrigo
It is a condition arisisng due to maceration of skin and a mixture of bacterial and fungal infections.
Please apply a combination of mild steroid
with antifungal and anti bacterial.
This will take care of all the aspects.
Please meet a dermatologist
if it persists.
Let me know if you have any other doubt.
you can ask a direct question to me on this forum, following the below link.
Wishing you a good health.