fixed bug updating login time for null user