fix register and update user