Add code attribute to User