validate post_id