Add rule to store previous login date

Two variables are needed in this case because `lastLogin` cannot be read or written from rules.