Afraid I’m going to miscarry

So I’ve had my pregnancy confirmed and levels show doubling. I’m 5 1/2 weeks and thought I would just test again just to see and my line is light. About a week ago my lines were getting darker. I’ve had two losses back to back and scared this will be another One. Anyone go through this before and everything turn out ok?