deleteuser() refactoring works