added logging to invitation sending