using getCustomer object directly and deal with invalid login