How should I go about my visa registration? I was planning on getting
the hostel in Moscow to register me upon arrival and then have the
hostel in St. Petersburg do the same. Is this OK?
Yes, that's okay. That is really all you need to do (register in both cities). Any valid and legal hostel should be able to "register" you, which you are encouraged to ...