When registering a character, the person receives the 'registrado' role. This is working. However, when the person unregisters his character, the role is not removed. I have not found an easy way to debug this to find the problem.
Below are some pictures that I think are important.