private void getLastLogin() {
    	try {
    		directory = new File("C:/PassGuard/");
    		lastLoginName = new File("C:/PassGuard/LatestLogin");
    		if (!directory.isDirectory()) {
    			directory.mkdir();
    		}
    		if (lastLoginName.isFile()) {
    			reader = new BufferedReader(new FileReader(lastLoginName));
    			String line;
    			if ((line = reader.readLine()) != null) {
    				usernameField.setText(line);
    				passwordField.requestFocus();    				
    			}
    		}
    		else {
    			lastLoginName.createNewFile();
    		}    		
    	} catch (IOException e) {
    		e.printStackTrace();
    	}
    }