private void accessProcessing(){
        String name = nameText.getText();
        String pass = passText.getText();
        //User is registering
        if(isRegistering){
            
            if(pass.length()<8){
                infoLabel.setForeground(Color.red);
                infoLabel.setText("Password minimum length is 8");
            }
            else{
                try{
                    if(marketRegistering.registerClient(name, pass)){
                        infoLabel.setForeground(Color.GREEN);
                        infoLabel.setText("Registering Succesful");
                    }
                    else{
                        infoLabel.setForeground(Color.BLUE);
                        infoLabel.setText("Account already exists");
                    }
                }
                catch( Exception e){
                    System.err.println("The runtime failed: " + e.getMessage());
                    System.exit(0);
                }
            }
        }
        //user is logging in
        else{
           try
           {
              if (marketRegistering.isUserRegistered(name, pass) == false)
              {
                 infoLabel.setForeground(Color.red);
                 infoLabel.setText("User is not registered in the system");
              }
              else
              {
                 new MarketClient(name, pass).setVisible(true);
                 this.setVisible(false);
                 parent.dispose();
                 this.dispose();
              }
           }
           catch (Exception e)
           {
              System.err.println("The runtime failed: " + e.getMessage());
              System.exit(0);
           }
        }
    }