:( help

So tonight me and my boyfriend were having sex and I applied some lotion on my hands not too long beforehand. I forgot and it got on his penis and then into my vagina. How can I prevent a yeast infection or UTI?