look up the user by email only if the email is not nil