@Override
	public void actionPerformed(ActionEvent e)
	{
		if (!Utils.isEmptyString(userName.getText(), false) && !Utils.isEmptyString(password.getText(), false))
		{
			try
			{
				userName.setCaretPosition(userName.getText().length());

				if (userName.getText().length() > 15)
				{
					userName.setText("Name Is Too Long! Must be less than 15 Letters!");
				}
				else
				{
					Vars.save = new Save();
					Save.FILE_PASSWORD = password.getText();
					Save.PLAYER_NAME = userName.getText();

					if (Vars.save.canLogin())
					{
						Save.FILE_PASSWORD = password.getText();
						Login.loggedIn = true;
						Games.openLauncher();
						Vars.login.dispose();

						for (Object obj : Loader.getModList())
						{
							Loader.getContainerFor(obj).startLoading();
						}

						System.gc();
					}
					else
					{
						info.setText("Incorrect Username or Password! \nDid you change the Password? You can use a different username to create a new account. But if you are trying to reset a save, login to the/any account, go to Options, and click Reset Save");
						userName.setBackground(Color.RED);
						password.setBackground(Color.RED);
						Vars.save = null;
					}
				}
			}
			catch (final InvalidPathException f)
			{
				info.setText("Invalid Letters for the name or password!");
				userName.setBackground(Color.RED);
				password.setBackground(Color.RED);
			}
		}
		else
		{
			info.setText("Both fields have to be filled with something for you to enter an previously account or to create a new account.");
			userName.setBackground(Color.RED);
			password.setBackground(Color.RED);
		}

	}