added error handling if email ids provided are not unique