added a function to get the customer id by email