added code for registering home users