moved user register event into ViewModel