fixes syntax errors on admin search for user function
fixes remaining syntax errors on admin search for user