public void getCredentials() {
        try {
            System.out.println("in getcredentials");
            in = new DataInputStream(client.getInputStream());
            out = new DataOutputStream(client.getOutputStream());
            //extract username and password out of the initial connection
            System.out.println("buffers initialized");
            String initalData = in.readUTF();
            System.out.println("nach readline");
            String[] contactInformation = initalData.split(":");
            recievedUsername = contactInformation[0];
            recievedPassword = contactInformation[1];
        } catch (IOException ex) {
            Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);
        }
    }