Check for valid data from the http request