bugfix: incorrect temporary user registration db logic