Added customerDetails into hooks; removed dup error codes