Convert to click handler to fix function scope.

To deal with "ReferenceError: libLogin is not defined"