user factory to return factory function.
user factory - add getProfile