public void setUser(User newUser)
	{
		if (newUser == null || (user != null && newUser.getID().equals(user.getID())))
				return;

		if (    (newUser.lastLog == null)
			 || (System.currentTimeMillis() - newUser.lastLog.getTime()) > 600_000)
		{ // if lastlog is older then 10 min or first login
			newUser.logins++;
		}

		mainFrame.setTitle("User: " + newUser.name
					+ " - Logins: " + newUser.logins
					+ " - LastLogin: " + TimeCalc.calcPrettyTime(newUser.lastLog));

		newUser.lastLog = new java.sql.Timestamp(System.currentTimeMillis());
		newUser.saveToDB();
		this.user = newUser;
		updateCorePhrases();
		mainFrame.updateUserBtnText();
		mainFrame.nextPhrase();
	}