private static void saveUsername(){
		File lastlogin = new File(Util.getWorkingDirectory() + File.separator + "lastlogin");
		if(LauncherFrame.PwCheckBox.isSelected()){
			if(lastlogin.exists()){
				lastlogin.delete();
			}
			FileWriter outFile;
			try {
				outFile = new FileWriter(lastlogin);
				PrintWriter out = new PrintWriter(outFile);
				out.println(LauncherFrame.UsernameField.getText().trim());
				System.out.println("Writing " + lastlogin.getAbsolutePath());
				out.close();
				outFile.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
	} else {
		if(lastlogin.exists()){
			lastlogin.delete();
		}
	}
}