Validates content length