Correctly create the user home directory upon registration (see #5437)