public void setMainFrame(MainFrame frame)
	{
		mainFrame = frame;
		
		if ( (user.lastLog == null)
		  || (System.currentTimeMillis() - user.lastLog.getTime()) > 600_000)
		{ // if lastlog is older then 10 min or first login
			user.logins++;
		}
		
		mainFrame.setTitle("User: " + user.name
				+ " - Logins: " + user.logins
				+ " - LastLogin: " + TimeCalc.calcPrettyTime(user.lastLog));
		
		user.lastLog = new java.sql.Timestamp(System.currentTimeMillis());
		user.saveToDB();
	}