Issue #2641624 by heykarthikwithu, Mac_Weber, kostyashupenko: Replace deprecated usage of entity_create('user') with a direct call to User::create()