minor fix in unregistering user