Really smelly urine and white discharge?

Could it be a uti and is that dangerous for baby? I also have lower back pain it's like sharp pains, and it doesn't hurt to pee but the inside of my vagina hurts.