Single with GF HoH situation

I made 53k this year and my girlfriend made 26k this year.

We both have 2 kids together and live in the same house.

I (the higher earner) will claim the 2 kids while my girlfriend claims the head of household and no kids.

Am I within the legal terms to do this according to the IRS?