Not very good coding practice but you can use a global variable to allow access to the data. To add this all you need is to add this line to any php module where $login is being either set and used.
Then use the $login variable as you would normally.
To use the $login in a tpl module it will be more complicated. To access it on a tpl page you can use this code:
Code:
{php}
global $login;
$this->assign("login", $login);
{/php}