move the directory creation before the user creation