else{
JOptionPane.showMessageDialog(null, "Unauthorized access");
}
}
else { //Default is Json
if(new JsonServerData(this,this.username,this.password).fetchdata()){
this.dispose();
}
else{
JOptionPane.showMessageDialog(null, "Unauthorized access");
}