add tracking of time online, add getLastOnline and getTimeOnline functions