Update content length and check success on init