public void run() {
		boolean quitcmd = false;
		do {			
			promptMenu();
			String input = cmdScanner.next();
			cmd = getCmd(input);
			if (validInput(cmd))
				switch (cmd) {
				case 0:
					promptRegister();
					registering = true;
					quitcmd = true;
					break;
				case 1:
					promptLogin();
					if(username != null && password != null)
						quitcmd = true;
					break;
				case 2:
					promptMenu();
					break;
				case 3:
					cmdScanner.close();
					System.exit(1);
					quitcmd = true;
					System.out.println("Quitting ...");
					break;
				default:
					break;
				}
			else
				System.out.println("Enter Valid Command\n/cmd for cmd menu");
		} while (!quitcmd);
	}