I wouldn't create temporary variables when they're not re-used, and don't significantly improve readability.

The same goes for above, with `$login`.