How can I be sure I connected the electric power socket correctly?
There are small plug-in devices with LED indicators that you plug into the socket; you can probably get one at a hardware store. The LED lights will indicate any wiring problems such as lack of ground, or confirm proper installation.