updated getAllUsers to use userModel class