private Boolean checkData(String name,String surname,String pass,String pass2){
		/*
		 * elegxei an einai swsta ta dedomena pou dothikan kai epistrefei to katalilo mnm an den einai
		 */
		if(name.length()<3){
			JOptionPane.showMessageDialog(null, "Dwste egkiro onoma!");
			return false;
		}else if(surname.length()<3){
			JOptionPane.showMessageDialog(null, "Dwste egkiro epwnimo!");
			return false;
		}else if(pass.length()<5){
			JOptionPane.showMessageDialog(null, "O kwdikos prepei na einai megaliteros apo 4 xaraktires!");
			return false;
		}else if(!pass.equals(pass2)){
			JOptionPane.showMessageDialog(null, "Oi kwdikoi den teriazoun!");
			return false;
		}else{
			return true;
		}
		
		
	}