Added expiration check of cookie (oups)