A diode won't regulate voltage, it'll just convert the AC to DC. You need an actual voltage regulator, you could use the one 1977 sells or you could buy a 5V regulator from an electronics place. Make sure it can handle the high current being input (probably like 3 amps).