Taking an online course doesn’t just have the power to boost your salary, it’s good for your mental health, too