added a setLastVisit method and trigger it on login