To check whether an email is existing or not,The saved search can be used.The requirement is while a new user tries to register with an existing mail id ,then an error message need to be displayed. For that first check the email is existing in the netsuite using saved search.
List -> Search ->Saved searches ->new.
For example,Adding an sample code to check whether the email ‘rosemol@jobinandjismi.com’ present or not,
var customerSearch = nlapiSearchRecord("customer",null,
[
["email","is","rosemol@jobinandjismi.com"]
],
[
new nlobjSearchColumn("entityid").setSort(false),
new nlobjSearchColumn("email")
]
);