Miscarriage and doctors saying I wasnt pregnant!!!!

Had miscarriage this morning at early stage hospital confirmed that I was pregnant yesterday but hcg was very low at 23

Went doctors and he said I wasnt pregnant because hcg was too low for 5 weeks 5 days from period but they are very irregular