will be done for others too, code for discord account linking in form and userpage is now in ts/modules/account-linking.ts as a configurable class.