added before_destroy for deleting courses so that deleting user is going to be super easy