added support for dependency injection
dependencies for User repositoroy