Fixed user can not register.