remove debugging print()s, add log_message in case of failed HMAC