Added whitespace check for empty post id.