Added request validation to POST /logs route.