code: protected boolean isValid() {
  
          boolean[] ret = new boolean[4];
          ret[0] = m_loginname.isValid();
          ret[1] = m_isWebOU ? true : m_userdata.isValid() | m_name_was_empty;
          ret[2] = m_isWebOU ? true : m_site.isValid() & m_startview.isValid() & m_startfolder.isValid();
          ret[3] = m_pw.getPassword1Field().isValid();
  
          for (int i = 0; i < ret.length; i++) {
  
              if (!ret[i]) {
                  m_tab.setSelectedTab(i);
                  break;
              }
          }
          return ret[0] & ret[1] & ret[2] & ret[3];
      }
docs: Checks if all fields are valid. If not the tab of the first invalid field gets chosen.<p>
  
  @return true, if everything is ok