updated Post with validation