fixing bug with customer, add getusername method to API