Added user.update function