Added used_code? attribute to User