Check expiry of cookie.
Import moment.js