Changes register function to decorator in inputs.
Updates nodes.