i need help!!!

i took a pregnancy test a day after my period was supposed to be here and it was faint positive. so my period came. i thought period was done because nothing was on tampon, went pee and the toilet was filled up with blood. put tampon in and it barely had anything. so i did the same thing and toilet was filled with blood as well... is this miscarriage or what?