Fix #869 Register new user not working for anonymous user + other

- Fix #869 Register new user not working for anonymous user
- Fix in ProtocolTable count method