implementing course invite feature