Optimized query to display page to edit user.