Allows logging in/register with enter button

This change allows form submit when clicking the enter button as normal
in web sites. It also enables the mouse cursor being displayed as a
hand/pointer over the register and cancel link which is standard. Also
makes some use of jQuery chaining.