Herynafter or Hereinafter: How To spell?

The word Herynafter is misspelled against Hereinafter, an adverb meaning "In the following part of this (writing, document, speech, and the like)."

Word contains consecutive vowels 'EI' in between alphabets her & nafter is misspelled as 'Y'
Wrong Spelling:  her-y-nafter 
Correct Spelling:  her-ei-nafter 
Explore spell check of Hereinafter to spell without errors.