Added post invalidation

Posts are invalid if they are edited so I added three simple functions
to detect and apply flair if the submission was valid.