add login promise example