Basic authentication with username/password, better feedback to user on connection status and errors, some code refactoring.