if (configBean != null) {
//start checking object
// System.out.println("not null");
if (DataConfig.IsValidDBInfo(configBean)) {
//db info is ok, now check the admin
if (dataConfig.IsValidAdminInfo(configBean)) {
//admin info ok, now we should clear ther admin info then open the main form
//configBean.setAdminID(-1);
configBean.setAdminAccount("");
dataConfig.writeConfigFile(configBean);
return true;