refactor adding username to dict for rederer