private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton4MouseClicked
        // TODO add your handling code here:
        if(!oldPassword.getText().equals(Database.db[Database.user].getPassword()) ){
            
            error.setSize(220,135);
            reason.setText("Current password is incorrect");
            error.setLocationRelativeTo(changePassword);
            error.setVisible(true);
 
        }else if(!newPassword.getText().equals(newPassword2.getText())){
            
            error.setSize(220,135);
            reason.setText("New passwords do not match.");
            error.setLocationRelativeTo(changePassword);
            error.setVisible(true);
        } else{
            changePassword.setVisible(false);
            confirmPassword.setSize(260,140);
            confirmPassword.setLocationRelativeTo(userSettings);
            confirmPassword.setVisible(true);
        }
        
        
        

    }