added working code to only save existing tags, added validation to prevent posts with no valid tags