sanitizing a post id