edited register.viewmodel=now registration works