I use lastlog to check latest login datetime. Here are steps I use to update my latest login datetime.
1) Try to Login to that user
sudo su userA
2) Exit that user and login to root then check latest login datetime
lastlog -u userA
3) But the result is not updated and will be
"Never logged in"
Can I know the root cause here or the solution how to update it? I usually try this way and can update other users.