Adding error logging to the API when the input is invalid.