private boolean checkTitleInputs() {
		//first check if the user has entered text to be overlaid
		if (titleText.getText().equals("")) {
			JOptionPane.showMessageDialog(null, "Please enter text to overlay on video", "Missing Input",
					JOptionPane.WARNING_MESSAGE);
		//otherwise if text has been entered, continue with function
		} else {
			//check if the text entered has not exceeded the word limit of 30 words
			String[] words = titleText.getText().split(" ");
			if (words.length <= 30) { 
				//check if the duration entered by user is in format required
				String timeFormat = "^\\d{2}:\\d{2}:\\d{2}$";
				boolean startMatched = false;
				//boolean to show if both times entered by user are valid (within length of video)
				boolean bothValid = true;
				//first check the start time and if it matches check the finish time
				Matcher matcher = Pattern.compile(timeFormat).matcher(startTitle.getText());
				if (matcher.find()) {
					startMatched = true;
				}
				if (startMatched) {
					matcher = Pattern.compile(timeFormat).matcher(endTitle.getText());
					//if the finish time also matches now go on to check if the times entered are
					//less than or equal to the length of the video
					if (matcher.find()) {
						String[] startTimeSplit = startTitle.getText().split(":");
						String[] endTimeSplit = endTitle.getText().split(":");
						//calculate the length of the start and end times and make sure they are
						//less than length of the video and end time is greater than start time
						long startLength = Long.parseLong(startTimeSplit[0])*3600000 + Long.parseLong(startTimeSplit[1])*60000
								+ Long.parseLong(startTimeSplit[2])*1000;
						long endLength = Long.parseLong(endTimeSplit[0])*3600000 + Long.parseLong(endTimeSplit[1])*60000
								+ Long.parseLong(endTimeSplit[2])*1000;
						long videoLength = vamix.userInterface.Main.vid.getLength();
						if ((startLength > videoLength) || (endLength > videoLength) || (endLength < startLength)) {
							bothValid = false;
						}
						//if both times are valid continue with drawing text on video
						if (bothValid) {
							return true;
							//otherwise display an error message to the user telling them times entered are invalid
						} else {
							JOptionPane.showMessageDialog(null, "Please enter a valid start time and end time for displaying the title text",
									"Invalid time entered", JOptionPane.ERROR_MESSAGE);
						}	
					} else {
						JOptionPane.showMessageDialog(null, "Please enter the end time in the format hh:mm:ss",
								"Invalid time format", JOptionPane.ERROR_MESSAGE);
					}
				} else {
					JOptionPane.showMessageDialog(null, "Please enter the start time in the format hh:mm:ss",
							"Invalid time format", JOptionPane.ERROR_MESSAGE);
				}
			} else {
				//The word limit of 30 was used because when using the max allowed font size (24), if more than 30 words were entered then the text
				//on the screen starts to wrap if it is too close to the edge of the video frame. Since this started to get quite messy, a word
				//limit of 30 words was used.
				JOptionPane.showMessageDialog(null, "The number of words to print on title screen is too large, you cannot have more than 30.",
						"Exceeded word limit", JOptionPane.ERROR_MESSAGE);
			}
		}
		return false;
	}