Fix #869 Register new user not working for anonymous user

Fix #869 Register new user not working for anonymous user