refactored the login situation. better to my tastes now.