Rename user to username but support old name in constructor