Recipes made with raw eggs risk salmonella if not prepared properly.  That is the reason to make sure that the temperature of the eggnog reaches 160 degrees.  If you store this in the fridge, look for a lumpy consistency or a sour smell. Spoon University wrote a great article that goes into more detail. They suggest to keep homemade eggnog for just 2-3 days.