Added username attribute to API