private void registerNewMagazine() {
		boolean validTF = false;
		boolean validPath = false;
				
		String name = view.getMagazineRegistrationName().getText().trim();
		String publicationPeriod = view.getMagazineRegistrationPublicPeriod().getText().trim();
		String theme = view.getMagazineRegistrationTheme().getText().trim();
		
		if(name.isEmpty()||publicationPeriod.isEmpty()||theme.isEmpty()){
			validTF = false;
			
		}else{
			validTF = true;
		}
		
		int rating = Integer.parseInt(view.getMagazineRatingSpinner().getValue().toString());
		System.out.println();
		
		if(archivo == null){
			validPath = false;
		}
		else{
			validPath = true;
			String imgPath = archivo;
			CopiarArchivo.getInstance().copiar(imgPath, ".\\src\\image\\"+ "#Magazine" +name + theme +".png");
		}
		
		if(validTF&&validPath){
			
			Revista mag = new Revista(name,".\\src\\image\\" + "#Magazine" +name + theme+".png", rating,theme, publicationPeriod );
			
			JOptionPane.showMessageDialog(view, "New magazine was registered: "+ name);
			
			//Add to the database
			model.addBelonging(mag);
			
			//Move to start?
			view.getStartPnl().setVisible(true); 
			view.getMagazineRegistrationPnl().setVisible(false);
			
			//clean
			archivo = null;
			view.getMagazineRegistrationName().setText("");
			view.getMagazineRegistrationPublicPeriod().setText("");
			view.getMagazineRegistrationTheme().setText("");
			
			view.getMagazineRatingSpinner().setValue(0);
			view.getMagazineImagelbl().setIcon(new ImageIcon(View.class.getResource("/image/default_image.png")));
			
		}else{
			if(!validTF){
				ShowDialog("Incomplete data");
				
			}
			else if(!validPath){
				ShowDialog("You must choose an image file first");
				
			}
		}
		updateStartPanelPanes();
		updateStartPanelLabels();		
	}