Added UserAccount class for handling user account links
Updated relevant files to use the new UserAccount class