I have a hypospadias penis I am 38 years old and ever time I have unprotected sex I get a UTI this time I have some mild burning, have to pee ever 10 minutes, and positive nitrates on the urine dip stick is this a UTI, my Dr give me 10 days of Cirpo is this correct

Summarized question: What causes presence of nitrates with mild burning having diagnosed with hypospadias?