A HMAC-Validator and Middleware