who wrote i'm going to love you like i'm going to lose you