Fix many bug and complete function add customer.