function updateUser added