Moved handler listeners in constructors to ensure they are always set. Removed old debug stmts and added some new ones. Replaced word auth with login. General code improvement/refactorization.