Added check for active form section