You don't just sign a contract with the HOA because most HOAs are not voluntary. There are some voluntary HOAs because they provide community amenities and you get access to those amenities when you join the HOA and possibly agree to some other restrictive covenants as well. Most HOAs you never even have to sign a contract it is written into the deed of your property that you are required to be a part of the HOA. In order to own the property you automatically are a member of the HOA and subject to all of it regulations.