Adds validation to Posts