Sore wiener

My little dude has a sore wiener we haven’t had this problem yet so idk what to do. He had/has a rash and now the tip of his wiener looks sore and red it also looks a bit swollen. Idk what I can do to help him we were putting aquaphor on his rash but he starts crying whenever I change his diaper or try putting anything near that area.