last bit of refactoring for edit/update/delete user section (ch 9)