Refactor update_user method to be able to update the name or password attributes