UTI During My First Pregnancy

Hello.

I’m am 15 weeks pregnant and I haven’t sleep well during my pregnancy. I call my doctor explain to her what is going on. I had headaches and back pain that hurts. After I came from the ER they did some test on me and find out that I had a UTI😞 I do drink a lot of water but they gave me these meds called Omnicef oral capsule to get rid of the UTI. I talk to one of my friends to make sure if this safe for pregnant women. I did told my ER doctor that I’m am pregnant and yea this is my first baby. And I do have a lot of questions because I need to make sure what meds I’m taking, what food to eat, etc. I will called my OBGYN tomorrow morning about this.