urinary infections every time we have sex

My girlfriend gets urinary infections every time we have sex, it's never happened with other partners before. She used urovaxom but stopped because a different bacterium appeared (Enterococcus faecalis). I need help on how to avoid this situation, as our relationship has been damaged by this problem