Fix token expiration:
* add reference to current date before requesting token.
* use this reference when checking if token is valid.