refactored delete user