error with null email search return