Don't close the connection in login
login only prints on errors
Change login to groups and list all newsgroups