Fix authentication problem in previous commit; userenv->{} should not be used before...