new way to check the valid token