login to buy course and check if already purchased