By adding this "update" of logins, we get meaningful stats of login time for teachers.  Total login time = last-active-time - login_time (because the end_time can happen at the next login, if a user doesn't press "logout"); so without these "updates" we get 0 time logged in.

In other words... this is all good :)