refactro bug with editUser