Improved the HMAC check for posting