public void getCredentials(){
        try {
            in = new BufferedReader(new InputStreamReader(client.getInputStream()));
            out = new PrintWriter(client.getOutputStream(), true);
            
            //extract username and password out of the initial connection
            String initalData = in.readLine();
            String[] contactInformation = initalData.split(":");
            recievedUsername = contactInformation[0];
            recievedPassword = contactInformation[1];
            
        } catch (IOException ex) {
            Logger.getLogger(ClientWorker.class.getName()).log(Level.SEVERE, null, ex);
        }
        
  }