Code changes for registering the new users.