Remove some unneeded code in cliente registraton.