updated the registercontroller