Thanks for your query.Based on the facts that you have posted it appears that you have acquired infection of the glans penis
due to some chemical irritation.
Please take some antibiotics like Doxycycline twice daily along with some anti allergic drug and topical antibiotic
ointment to be applied over glans. Get prescription of these drugs from your family Physician,Do not apply any moisturiser.