I don't believe that every time you see someone who is deceased that you are actually meeting them. I do believe that it is possible to make contact with them through a dream.
As for how you can really know, that's hard to answer. Maybe you can ask your spirit guide in your dream, (if you believe that they exist).