loginPersona function is using promises pattern