fix error in user controller update