If you've mistakenly typed "hadto" instead of "had to", don't worry; auto-correct can be tricky sometimes. To fix the error, simply separate the words and replace "hadto" with "had to". Giving the proper space between "had" and "to" ensures clear and grammatically correct writing.