implemented missing methods in user repository