baby heads

when is a baby's head supposed to start to "harden" ?.. asking for a friend. they took their daughter to her one month check up & the doctor told them they think something may be wrong mentally with the baby bc the back of her head is still soft. I thought that was ubsurd & didn't make any sense. like she's a month old?