implement register and update USER/REST