refactored register user service call and integrated with user