modified users ctrl to work with promises