admin can search for student #2276

for #2276
Nesting level is a bit too deep. See if you can extract a method that works on one session and call that method in a loop. OK if cannot.