fix user registration broken in r2059 (6ea9c85)