I moved the setAttribute for 'Lifecycle' to the beginning of the update and it works now. No idea why this works but I guess I figured it out.
Am still getting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.