@Override
	public void notifyLoggedIn(Credentials credentials, boolean loggedIn, boolean rememberMe) {
		if (loggedIn) {
			if (rememberMe) {
				try {
					CredentialsCodec.write(credentials);
				} catch (IOException | GeneralSecurityException e) {
					logger.warn("Failed to save credentials:", e);
				}
			} else {
				try {
					if (!CredentialsCodec.delete()) {
						logger.warn("Failed to delete existing saved credentials:", new NoSuchFileException(CredentialsCodec.PATH.toFile().toString()));
					}
				} catch (IOException e) {
					logger.warn("Failed to delete existing saved credentials:", e);
				}
			}
			displayInformationDialog("Login successful", "Login", null);
			setScreen(mainScreen);
		} else {
			displayInformationDialog("Login failed", "Login", null);
		}
	}