loginCustomer API for an e-commerce project