Replaced Token model object in session with token seed

We fixed issues we encountered where the two-factor authentication did not work with the cache session backend.