Refactored the login.pl example