Registering new user now returns the right userid, bugfix