implemented login and basic ServerConnectionManager functionality