F.B.
1. its not your period, it is implantation bleeding, or spotting, and you are still pregnant.
2. it is your period, you were pregnant, you miscarried early, and you are registering as pregnant because pregnancy hormones can persist despite miscarriage.
test again in a week, or go to the doctor for a blood test.
Best,
F. B.