In this case, to is a preposition that links the phrasal verb to the upcoming word. That is why the correct spelling is log in to not log into.