public boolean isValid(DateFormat dateFormatter) {
		if (getLabel() <= 0 || getLabel() > 5){
			//System.err.format("[Error]Missing Lable or wrong label!!");
			System.err.print('L');
			return false;
		}
		else if (getContent() == null){
			//System.err.format("[Error]Missing content!!\n");
			System.err.print('C');
			return false;
		}	
		else if (getDate() == null){
			//System.err.format("[Error]Missing date!!\n");
			System.out.print('d');
			return false;
		}
		else {
			// to check if the date format is correct
			try {
				dateFormatter.parse(getDate());
				return true;
			} catch (ParseException e) {
				System.err.print('D');
			}
			return true;
		} 
	}