Moved password first att connection. Can now connect to passwordprotected servers.
Small code clean up.