Set success state only after successfull commit of tx.
Use Principal.class for property conversion.
Strip security-relevant properties from what's coming from the registration POST request.
Added support for registration action
If changing the name was not successful (f.e. due to a uniqueness constraint), reset the old state.