Solve some minor bugs in OPC account registration template

Check out each commit for more details.