thereto, and the property of which the dwelling unit is a part if such obligations and restrictions are not in violation of any of the terms of this chapter and are not otherwise contrary to law, and if such obligations and restrictions are brought to the attention of the tenant at the time of his or her initial occupancy of the dwelling unit and thus become part of the rental agreement.