validate post IDs