Relay turns on when computer is disconected

Leo - I thought that at first but looking at that diagram he has also connected power to the 5V pin, so the 5V connection to the Vin pin will just stop the regulator being reversed biased.