It is not uncommon in Diabetics to have the problems you are facing. In most likelihood you have a fungal infection
for which you can safely apply an over the counter anti fungal cream. If the rash
does not subside in a week to ten days better pay a visit to your dermatologist
. In the mean time it s important to keep your blood sugar levels in control. As far as erectile dysfunction
is concerned there are now drugs like syldenafil citrate available in the market which can help you but i stronly advise that you consult a Urologist
first, because these drugs have their own side effects and contraindications like heart condition.
Dr. Anubhav Gupta