login works; debugging, refactoring, and beautifying next