This is a tiny improvement proposal.
If you search a user by an email with no trailing spaces, it works just fine:
However, it finds nothing if a space is added:
A simple improvement would be to trim user input before carrying the search.
Trailing spaces / tabs / etc may easily be inserted when copypasting an email address from somewhere.