changed email to be a unique key