Check for valid token before upserting notifications token