The rash is mostly because of infection. But sometimes it is because of the chemical irritation because of other soaps, deodorants we use and the clothing. To improve the immunity we should be focusing on eating healthy and also proper regular hygiene.
source