"If" statement and LEDs not working correctly

I tapped of the house ground and connected it to the GRD pin near the 5v out pin.

I don't like the sound of that so be careful.