Code changes for register users.