added logic to update user points after quiz is completed