Added promises to the userRepository