Hide the fields in the form and check first that the node has field uuid.
Remove uneeded field and improve code.