check token validity on sync