Fix how g_login worked

Forgot all about how arguments are passed. A pointer to the pointer was
needed.