digital input interference

the 5v arduino and the 12v relay power shared a common ground. but i hooked that ground to the 120v mains ground.